package com.mcxx.formulcount.gonshi;

public class StringOperateSymbol extends OperateSymbol {

	public StringOperateSymbol(String symb, int prio) {
		super(symb, prio);
	}
	public Object  Caluc(Object pA, Object ... B) throws Exception
    {
		if (symbol.equals("[VInclude]")) 
        {
            if (pA.toString().indexOf(B[0].toString())>=0) {
                return 1;
            } else {
                return 0;
            }
        }
        throw new Exception("不支持的运算符:"+symbol);
    }
}
